package com.fairisanddog.service.serviceimpl;


import com.fairisanddog.entity.Books;
import com.fairisanddog.mapper.BooksMapper;
import com.fairisanddog.service.BooksService;

import java.util.List;

public class BooksServiceImpl implements BooksService {
    private BooksMapper booksMapper;
    public void setBooksMapper(BooksMapper booksMapper){
        this.booksMapper=booksMapper;
    }


    public int addBook(Books books) {
        return booksMapper.addBook(books);
    }



    public List<Books> queryBookByType(String btype) {
        return booksMapper.queryBookByType(btype);
    }

    public List<Books> queryAllBooks() {
        return booksMapper.queryAllBooks();
    }
}
